package com.open.pay.wechat.infrastructure.config;

/**
 * @author zhang kaichao
 */
public class WxPayConfigStorageHolder {

    private final static ThreadLocal<String> THREAD_LOCAL = new ThreadLocal<String>() {
        @Override
        protected String initialValue() {
            return "default";
        }
    };

    public static String get() {
        return THREAD_LOCAL.get();
    }

    public static void set(String label) {
        THREAD_LOCAL.set(label);
    }

    public static void remove() {
        THREAD_LOCAL.remove();
    }
}
